<?php

$id = $_GET['id'];
$id = intval($id);

require_once 'sql.php';
$sql ="SELECT * FROM aaa WHERE id=$id limit 1";
$result = $conn->query($sql);
$data = array();
if($result->num_rows > 0){
    $rows = $result->fetch_all(MYSQLI_ASSOC);
    $data['status'] = 1;
    $data['into'] = $rows[0];
    
}else{
    $data['status'] = 0;
    $data['into'] = "no infotmation";
    
    
}
echo json_encode($data);

